package cap11;
/*********************************************************
 * Bullet class derives from BaseVectorShape and give it the specific
 * information relevant to a bullet object (most notably, that the getBounds()
 * method returns a Rectangle that is one pixel wide and one pixel high).
 **********************************************************/
import java.awt.*;

public class Bullet extends VectorEntity {

    //bounding rectangle
    public Rectangle getBounds() {
        Rectangle r;
        r = new Rectangle((int)getX(), (int) getY(), 1, 1);
        return r;
    }

    Bullet() {
        //create the bullet shape
        setShape(new Rectangle(0, 0, 1, 1));
        setAlive(false);
    }
}

